package Schema::Result::ModelRelation;

use strict;
use warnings;
use utf8;

use base qw/DBIx::Class::Core/;

__PACKAGE__->table('ModelRelation');
__PACKAGE__->add_columns( 
    Id => { data_type => 'integer', is_auto_increment => 1 }, 
    PrincipalId  => {},
    SubordinateId  => {},
    RelationType  => {},
);
__PACKAGE__->set_primary_key('Id');
__PACKAGE__->belongs_to(Principal => 'Schema::Result::Model', 'PrincipalId');
__PACKAGE__->belongs_to(Subordinate => 'Schema::Result::Model', 'SubordinateId');

1;
